﻿using System.Collections.Generic;
using System.ComponentModel;

namespace FileDuplicateRemover.Gui
{
    public class GridItemSortComparerByCount : GridItemSortComparer
    {
        public GridItemSortComparerByCount(ListSortDirection direction) : base(direction)
        {
        }

        protected override int CompareCore2(GridItem x, GridItem y)
        {
            return Comparer<int>.Default.Compare(x.Count, y.Count);
        }
    }
}
